﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace MODEL
{
    /// <summary>
    /// 新闻分类
    /// </summary>
    #region 新闻分类
    public class NewsColumn
    {
        /// <summary>
        /// 新闻分类
        /// </summary>
        public NewsColumn()
        { }
        /// <summary>
        /// 类别编号
        /// </summary>
        private int _nclassID;

        public int NclassID
        {
            get { return _nclassID; }
            set { _nclassID = value; }
        }
        /// <summary>
        /// 类别名称
        /// </summary>
        private string _nclassName;

        public string NclassName
        {
            get { return _nclassName; }
            set { _nclassName = value; }
        }
        /// <summary>
        /// 类别描述
        /// </summary>
        private string _nreadme;

        public string Nreadme
        {
            get { return _nreadme; }
            set { _nreadme = value; }
        }
        /// <summary>
        /// 父类编号
        /// </summary>
        private int _nparentID;

        public int NparentID
        {
            get { return _nparentID; }
            set { _nparentID = value; }
        }
        /// <summary>
        /// 深度
        /// </summary>
        private int _ndepth;

        public int Ndepth
        {
            get { return _ndepth; }
            set { _ndepth = value; }
        }
        /// <summary>
        /// 根类别编号
        /// </summary>
        private int _nrootID;

        public int NrootID
        {
            get { return _nrootID; }
            set { _nrootID = value; }
        }
        /// <summary>
        /// 子类别编号
        /// </summary>
        private int _nchildNum;

        public int NchildNum
        {
            get { return _nchildNum; }
            set { _nchildNum = value; }
        }
        /// <summary>
        /// 同级别上一个类别编号
        /// </summary>
        private int _nprevID;

        public int NprevID
        {
            get { return _nprevID; }
            set { _nprevID = value; }
        }
        /// <summary>
        /// 同级别下一个类别编号
        /// </summary>
        private int _nnextID;

        public int NnextID
        {
            get { return _nnextID; }
            set { _nnextID = value; }
        }
        /// <summary>
        /// 排序编号
        /// </summary>
        private int _norderID;

        public int NorderID
        {
            get { return _norderID; }
            set { _norderID = value; }
        }
        /// <summary>
        /// 父类别路径
        /// </summary>
        private string _nparentPath;

        public string NparentPath
        {
            get { return _nparentPath; }
            set { _nparentPath = value; }
        }
    }
    #endregion

    /// <summary>
    /// 新闻实体
    /// </summary>
    #region 新闻实体
    public class NewsInformation 
    {
        public NewsInformation()
        { }
        /// <summary>
        /// 新闻编号
        /// </summary>
        private string _nID;

        public string NID
        {
            get { return _nID; }
            set { _nID = value; }
        }
        /// <summary>
        /// 分类编号
        /// </summary>
        private int _nclassID;

        public int NclassID
        {
            get { return _nclassID; }
            set { _nclassID = value; }
        }
        /// <summary>
        /// 标题
        /// </summary>
        private string _ntitle;

        public string Ntitle
        {
            get { return _ntitle; }
            set { _ntitle = value; }
        }
        /// <summary>
        /// 关键字
        /// </summary>
        private string _nkey;

        public string Nkey
        {
            get { return _nkey; }
            set { _nkey = value; }
        }
        /// <summary>
        /// 副标题
        /// </summary>
        private string _nsubtitle;

        public string Nsubtitle
        {
            get { return _nsubtitle; }
            set { _nsubtitle = value; }
        }
        /// <summary>
        /// 简介
        /// </summary>
        private string _nabstract;

        public string Nabstract
        {
            get { return _nabstract; }
            set { _nabstract = value; }
        }
        /// <summary>
        /// 作者
        /// </summary>
        private string _nauthor;

        public string Nauthor
        {
            get { return _nauthor; }
            set { _nauthor = value; }
        }
        /// <summary>
        /// 新闻内容
        /// </summary>
        private string _ncontent;

        public string Ncontent
        {
            get { return _ncontent; }
            set { _ncontent = value; }
        }
        /// <summary>
        /// 时间 年
        /// </summary>
        private string _nyear;

        public string Nyear
        {
            get { return _nyear; }
            set { _nyear = value; }
        }
        /// <summary>
        /// 时间 月
        /// </summary>
        private string _nmonth;

        public string Nmonth
        {
            get { return _nmonth; }
            set { _nmonth = value; }
        }
        /// <summary>
        /// 时间 天
        /// </summary>
        private string _nday;

        public string Nday
        {
            get { return _nday; }
            set { _nday = value; }
        }
        /// <summary>
        /// 发布时间戳
        /// </summary>
        private string _ntimestamp;

        public string Ntimestamp
        {
            get { return _ntimestamp; }
            set { _ntimestamp = value; }
        }
        /// <summary>
        /// 转载地址
        /// </summary>
        private string _nisfrom;

        public string Nisfrom
        {
            get { return _nisfrom; }
            set { _nisfrom = value; }
        }
        /// <summary>
        /// 置顶
        /// </summary>
        private bool _nisimg;

        public bool Nisimg
        {
            get { return _nisimg; }
            set { _nisimg = value; }
        }
        /// <summary>
        /// 热点
        /// </summary>
        private bool _nishot;

        public bool Nishot
        {
            get { return _nishot; }
            set { _nishot = value; }
        }
        /// <summary>
        /// 链接地址
        /// </summary>
        private string _nurl;

        public string Nurl
        {
            get { return _nurl; }
            set { _nurl = value; }
        }
        /// <summary>
        /// 操作员
        /// </summary>
        private string _noperator;

        public string Noperator
        {
            get { return _noperator; }
            set { _noperator = value; }
        }
        /// <summary>
        /// 点击量
        /// </summary>
        private int _nclickNum;

        public int NclickNum
        {
            get { return _nclickNum; }
            set { _nclickNum = value; }
        }
        /// <summary>
        /// 发布时间
        /// </summary>
        private DateTime _ntime;

        public DateTime Ntime
        {
            get { return _ntime; }
            set { _ntime = value; }
        }
    }
    #endregion
}
